package com.nf.service;

import com.nf.dao.TestDao;
import com.nf.dao.TestDaoImpl;
import com.nf.entity.Test;

import java.util.List;

public class TestServiceImpl implements TestService {
    TestDao testDao = new TestDaoImpl();
    public List<Test> getAll() {
        return testDao.getAll();
    }

    public boolean deleteOne(int id) {
        return testDao.deleteOne(id);
    }

    public boolean addOne(Test t) {
        return testDao.addOne(t);
    }

    public Test queryOneById(int id) {
        return testDao.queryOneById(id);
    }

    public boolean updateOne(Test t) {
        return testDao.updateOne(t);
    }
}
